package cn.cpf.exercise.consumer.impl;

import cn.cpf.exercise.consumer.service.ProductService;
import cn.cpf.exercise.distributed.CommonService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * <b>Description : </b>
 *
 * @author CPF
 * Date: 2020/3/17 11:25
 */
@Service
public class ProductServiceImpl implements ProductService {

    @Reference
    private CommonService commonService;

    @Override
    public Integer getCost(int a) {
        return commonService.pay(a * 10);
    }
}
